package com.ftwj.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ftwj.entity.SchoolRoomSeatInfo;
import com.ftwj.entity.UserAppointmentInfo;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.xml.crypto.Data;
import java.util.List;
import java.util.Map;

@Mapper

public interface SchoolRoomSeatMapper {

    int insertSchoolRoomSeatInfo (SchoolRoomSeatInfo schoolRoomSeatInfo);

    int updateSchoolRoomSeatInfo (SchoolRoomSeatInfo schoolRoomSeatInfo);

    int updateSchoolRoomSeatOpenState (SchoolRoomSeatInfo schoolRoomSeatInfo);

    int deleteSchoolRoomSeatInfo (@Param("id") String id);
    @MapKey("seatId")
    IPage<Map<String, Object>> selectSchoolRoomSeatInfoAll(Page<Map<String, Object>> page);

    /**
     * 根据座位ID查询座位代码
     * @param seatId 座位ID
     * @return 座位代码
     */
    String findSeatCodeById(String seatId);








}
